import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// 导入path
import path from "path";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  // 配置别名
  resolve: {
    alias: {
      // @ 表示src目录
      "@": path.resolve(__dirname, "src")
    }
  }
});
